package com.allen.app.mapper.example;

import com.allen.app.domain.example.TestDemo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import java.util.List;

/**
* Description:测试Mapper类
* @author Limiaojun
* @date 2021-09-13
*/
@Mapper
@Repository
public interface TestDemoMapper {

    /**
    * Description:新增测试
    *
    * @param testDemo 测试
    * @return int
    * @author Limiaojun
    * @date 2021-09-13 12:05:35
    */
    int createTestDemo(TestDemo testDemo);

    /**
    * Description:根据id修改测试
    *
    * @param testDemo 测试
    * @return int
    * @author Limiaojun
    * @date 2021-09-13 12:05:35
    */
    int updateTestDemoById(TestDemo testDemo);

    /**
    * Description:根据id删除测试
    *
    * @param id id
    * @return int
    * @author Limiaojun
    * @date 2021-09-13 12:05:35
    */
    int deleteTestDemoById(Long id);

    /**
    * Description:根据ids删除测试
    *
    * @param ids id字符串数组
    * @return int
    * @author Limiaojun
    * @date 2021-09-13 12:05:35
    */
    int deleteTestDemoByIds(List<String> ids);

    /**
    * Description:根据id查找测试
    *
    * @param id id
    * @return com.allen.app.domain.example.TestDemo
    * @author Limiaojun
    * @date 2021-09-13 12:05:35
    */
    TestDemo selectTestDemoById(Long id);

    /**
    * Description:查询测试列表
    *
    * @param testDemo 测试
    * @return java.util.List<com.allen.app.domain.example.TestDemo>
    * @author Limiaojun
    * @date 2021-09-13 12:05:35
    */
     List<TestDemo> selectTestDemoList(TestDemo testDemo);
}
